package com.example.learn.service.impl;


import com.example.learn.mapper.SortMapper;
import com.example.learn.pojo.SortEntity;
import com.example.learn.service.SortService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SortServiceImpl implements SortService {

    @Autowired
    SortMapper sortMapper;

    @Override
    public List<SortEntity> getSortList() {
        return sortMapper.getSortList();
    }

    @Override
    public int addSort(SortEntity sort) {
        return sortMapper.addSort(sort);
    }

    @Override
    public int updateSort(SortEntity sort) {
        return sortMapper.updateSort(sort);
    }

    @Override
    public int delSortById(int id) {
        return sortMapper.delSortById(id);
    }

    @Override
    public String getSortById(int id) {
        return sortMapper.getSortById(id);
    }
}
